home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MACD 5
/
MACD 5.bin
/
internet
/
yam_i_dodatki
/
yamscripts
/
deletefolder.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-07-22
|
660b
|
25 lines
/* DeleteFolder.rexx 1.0 - Quickly deletes all messages in the current folder.
** Send comments and suggestions to knikulai@utu.fi
** Check http://www.utu.fi/~knikulai/ARexx.html for many more useful scripts */
options results
conf='yes' /* Set to yes, if you want a confimation requester! */
address 'YAM'
if upper(conf)='YES' then do
'GetFolderInfo name'
'Request "Delete all messages in folder' result'?" "_Yes, do it!|_No way!"'
if result=0 then exit
end
name=result
'GetFolderInfo path'
path=result
if rc=0 then do
if pos(':',path)=0 then path='YAM:'path
path=path'/#?'
address command 'Delete >nil:' path
address 'YAM' 'MailUpdate'
end
exit